home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch13 / 13fig16.wrl < prev    next >
Text File  |  1996-09-22  |  2KB  |  56 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Center vaulted ceiling
  8.         DEF Ceiling Transform {
  9.             translation 0.0 2.0 0.0
  10.             children [
  11.                 DEF Vault Inline {
  12.                     url "vault.wrl"
  13.                 },
  14.                 Transform { rotation 0.0 1.0 0.0 1.57
  15.                     children USE Vault
  16.                 },
  17.                 Transform { rotation 0.0 1.0 0.0 3.14
  18.                     children USE Vault
  19.                 },
  20.                 Transform { rotation 0.0 1.0 0.0 -1.57
  21.                     children USE Vault
  22.                 }
  23.             ]
  24.         },
  25.     # Left, right, front, and back vaulted ceilings
  26.         Transform { translation -2.0 0.0  0.0  children USE Ceiling },
  27.         Transform { translation  2.0 0.0  0.0  children USE Ceiling },
  28.         Transform { translation  0.0 0.0 -2.0  children USE Ceiling },
  29.         Transform { translation  0.0 0.0  2.0  children USE Ceiling },
  30.     # Columns supporting the vaulted ceilings
  31.         Transform {
  32.             translation -3.0 1.0 -1.0
  33.             children DEF Column Shape {
  34.                 appearance Appearance {
  35.                     material Material { }
  36.                 }
  37.                 geometry Cylinder {
  38.                     height 2.0
  39.                     radius 0.05
  40.                 }
  41.             }
  42.         },
  43.         Transform { translation -1.0 1.0 -1.0  children USE Column },
  44.         Transform { translation  1.0 1.0 -1.0  children USE Column },
  45.         Transform { translation  3.0 1.0 -1.0  children USE Column },
  46.         Transform { translation -3.0 1.0  1.0  children USE Column },
  47.         Transform { translation -1.0 1.0  1.0  children USE Column },
  48.         Transform { translation  1.0 1.0  1.0  children USE Column },
  49.         Transform { translation  3.0 1.0  1.0  children USE Column },
  50.         Transform { translation -1.0 1.0 -3.0  children USE Column },
  51.         Transform { translation -1.0 1.0  3.0  children USE Column },
  52.         Transform { translation  1.0 1.0 -3.0  children USE Column },
  53.         Transform { translation  1.0 1.0  3.0  children USE Column }
  54.     ]
  55. }
  56.